environment to build up. OK, it took me a minute to build it. [OK] All 16384 slots covered. ZHAOGUIHUADEDIANNAO:SRC zhaogh$/redis-cli-c-P 9001 127.0.0.1:9001> Get testkey001 -Redirected to Slots [12786] located at 127.0.0.1:9003 (nil) 127.0.0.1:9003> How to add Nodes: First we create a directory called 9004: Zhaoguihuadediannao:redis-cluster zhaogh$ mkdir 9004 Zhaoguihuadediannao:redis-cluster zhaogh$ Then
Tags: instance UI installation Deployment Code Redis cluster good replication direct statusFirst, Introductionafter Redis cluster 3.0, you need at least 3 (Master) +3 (Slave) to build a cluster, a decentralized, distributed storage architecture that can share data across multiple nodes . resolves issues such as redis high availability, scalability, and more. II. Installation and Deployment1. Environment[Email protected] ~]# cat/etc/redhat-6.9~]# uname-R2.6. -696~]#/etc/init.d/is ~~]# hostname-I
Redis cluster requires a minimum of 3 primary nodes# Cd/usr/redisCreate a Directory# mkdir Cluster# CD Cluster1. Copy a configuration file# CP.. /redis.conf 9001.confModifying a configuration file# Vim 9001.confPort 9001AppendOnly Yescluster-enabled YesCluster-config-file nodes-9001.confCluster-node-timeout 50002. Copy two copies of configuration files and modify
21-j snat -- to-source 216.94.87.37: 2121 otherwise, the FTP server returns the client 21 to the Internet, and the Internet user sends an FTP request to 2121. If a client from 21 is received, it does not recognizeThe above does not seem to have to be necessary. I have done experiments:/Sbin/iptables-T Nat-A postrouting-s 10.4.0.0/16-o $ wan_int-j snat -- To 124.126.86.small/Sbin/iptables-T Nat-A prerouting-D 124.126.86.138-p tcp -- dport 2022-j dnat -- to-destination 10.4.3.150: 22DNAT still ne
that reset the default virtual machine first
Delete the original default (if any)docker-machine rm default
Create a new default virtual machine docker-machine create --driver virtualbox default (This step may need to wait, I am using Parallel Desktop 11, I also need to open CPU virtualization in the virtual machine settings, mainly support Vt-x)
Then if you choose Virtual Box directly in the menu, you will find nothing, the trick is to enter VirtualBox in the command line just now, then you
blocked ). a ssh tunnel can be used to bypass this restriction. let's name my machine at the university as 'work' and my home machine as 'home '. 'home' needs to have a public IP for this to work. and I am running a SSH server on my home machine. following dimo-strates the scenario.
To create the SSH tunnel execute following from 'work' machine.
1
ssh -L 9001:yahoo.com:80 home
The 'l' switch indicates that a local port forw
situation, Restart the node directly on the console when maintenance is available) 7, as shown. Fill in the name for the management side of the domain (we use the default adminserver here), "Listen address" is the default to listen to all the IP on this computer (here by default, generally represents localhost,127.0.0.1 or IPv6 0:0:0:0:0 : 0:0:1), "Listen port" means listening to the port of this machine, generally you like to set the management port to 900
November 2 20:58 logsDrwx ------ 2 nobody root 6 November 2 14:08 proxy_tempDrwxr-xr-x 2 root 19 November 2 11:05 sbinDrwx ------ 2 nobody root 6 November 2 14:08 scgi_tempDrwx ------ 2 nobody root 6 November 2 14:08 uwsgi_temp
The configuration file is generally named nginx. conf In the conf folder. In this experiment, the key is to configure the file:
[root@centos nginx]# vim ./conf/nginx.conf
Let's modify the following points [192.168.110.1: 9001
start with a new three instance directory, 9001,9002,9003, which is the port number of the Redis instance.I have built the directory here, and then we have previously compiled and modified redis-server, redis.conf These two files are copied into these three directories, after the copy is like This:We open the redis.conf file, and for the sake of simplicity, we keep only the following configuration Items:Daemonize YesPort 9001cluster-enabled YesCluster-config-file nodes.confCluster-node-timeout
-site.xml is as follows:Attribute name? ? ? ? ? ? Attribute Value? ? ? ? ? ? ? ?? ScopeDfs. namenode. rpc-address ?? 192.168.111.128: 9001 ?? All nodesDfs. namenode. secondary. http-address? 192.168.111.129: 50090? NameNode ,? SecondaryNameNode (because there are not so many nodes, we will not configure it here)Dfs. namenode. name. dir? /Home/jacbxu/hadoop/name-jacxu? NameNode ,? SecondaryNameNodeDfs. datanode. data. dir? /Home/jacbxu/hadoop/data-jacx
The most recent writing code needs to be scaled, and it's layer, but it's a matter of finding out how to set the location, so I decided to study it.First, the base code, the code good special handling, no anchor settings and scalingClass Testlayer:public Layer {public:bool init (); Create_func (Testlayer);}; BOOL Testlayer::init () {if (! Layer::init ()) {return false; } Sprite *dd = Sprite::create ("Item_gift1.png"); This->addchild (DD); This->setcontentsize (Size (200, 200)
arbitrarily assigned a useless port that can be retrieved by server.address () after the ' listening ' event is triggered.
If host is omitted, if IPV6 is available, the server receives a connection based on the unspecified IPV6 address (::), otherwise receives a connection based on unspecified IPv4 address (0.0.0.0)
*/
Server.listen (9001, function () {
Console.log (' server is running on port number:
source destination Chain OUTPUT (policy ACCEPT) target prot opt source destinationClear the specified iptablers-F-t table name
[root@VM_0_7_centos ~]# iptables -t filter -A INPUT -p tcp --dport 22 -j DROP
Because the default filter table is used, it is the same as iptables-F.
Before configuring the firewall, it is best to write a scheduled task to close the firewall for every long time, so as to prevent remote login failure.
-A adds the rule to the end of the chain.
-I: add the rule to the begi
Introduction: Before starting the following tutorials, please look at the fifth big point to avoid unnecessary duplication of operations.First, the preparation work (the following is the use of the tool for this example)1, MyEclipse10.7.12. JDK 1.6.0_22Second, create the service side1. Create "Web Service Project", named "Theservice".2. Create the "class" class, named "Servicehello", located under the "Com.hyan.service" package.3, write the method for the client to call, that is, compile the met
to C:\wnmp\nginx, and enter the folder, find Nginx.exe, mouse double-click Nginx.exe, start Nginx. Go to the Task Manager Process tab, if you find the Nginx.exe process, confirm that Nginx is started. Open the browser, type: http://127.0.0.1 in the browser address bar, as shown in the interface, stating that Nginx is working properly. 。 (2) Enter the C:\wnmp\nginx\conf folder, Notepad or WordPad open the Nginx configuration file nginx.conf Find the following two places to modify the
;#modify by Lee 20160902 for Php-sLocation/{Root c:/wnmp/www;Index index.html index.htm index.php;}# Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000Location ~ \.php$ {Root c:/wnmp/www;Fastcgi_pass 127.0.0.1:9001;Fastcgi_index index.php;Fastcgi_param script_filename $document _root$fastcgi_script_name;Include Fastcgi_params;}#modify by Lee 20160902 for PHP-E}4. Installing php-5.6.25-nts-win32-vc11-x64/x86(1) Unzip the Php-5.6.25-nts-
", line 9001 ----- PL/SQL Call Stack ----- object line objecthandle number name0x17c15e530 20462 package body SYS. KUPW $ WORKER0x17c15e530 9028 package body SYS. KUPW $ WORKER0x17c15e530 4185 package body SYS. KUPW $ WORKER0x17c15e530 9725 package body SYS. KUPW $ WORKER0x17c15e530 1775 package body SYS. KUPW $ WORKER0x172f16550 2 anonymous blockORA-39014: One or more workers have prematurely exited. ORA-39029: worker 3 with process name "DW00" prem
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.